import service from "@/service";
import qs from "qs"//后端用的nodejs，比较特殊

//登录接口
export function loginAPI(data){
    data=qs.stringify(data)
    return service({
        method:'post',
        url:'/users/login',
        data//data:data的简写
    })
}
//注册接口
export function registerAPI(data){
    data=qs.stringify(data)
    return service({
        method:'post',
        url:'/users/register',
        data//data:data的简写
    })
}
//首页显示接口
export function getInfo(){
    return service({
        method:'get',
        url:'/profiles'
    })
}